<?php

namespace app\api\controller;

use app\common\controller\Frontend;
use app\api\model\Swiper as Smodel;

class Swiper extends Frontend
{
  protected array $noNeedLogin = ['index'];

  public function initialize(): void
  {
    parent::initialize();
  }

  public function index()
  {
    $data = Smodel::select()->toArray();
    $this->success('ok', $data);
  }
}
